package com.example.shoppingmall.dao;

import com.example.shoppingmall.pojo.Return;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Mapper
public interface AfterSaleMapper {
    //分页显示+模糊查询+排序
    public List<Return> getReturnlist(@Param("after") String after,@Param("odno") String odno,
                                      @Param("examine") String examine,@Param("status") String status,
                                      @Param("rphone") String rphone,@Param("rorderno") String rorderno,
                                      @Param("aftersale") String aftersale,@Param("pageno") Integer pageno,
                                      @Param("pageSize") Integer pageSize);

    //更具条件动态查询总条数
    public int rcount(@Param("rphone") String rphone,@Param("rorderno") String rorderno,
                      @Param("examine") String examine,@Param("status") String status,
                      @Param("aftersale") String aftersale);

    //查看详情
    public Return selafter(@Param("id") Integer id);
}